
package com.ruoyi.busi.contest.mapper;

import com.ruoyi.busi.contest.domain.CompetitionAttachment;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;

/**
 * 大赛附件Mapper接口
 */
@Mapper
public interface CompetitionAttachmentMapper {
    /**
     * 批量插入大赛附件
     * 
     * @param attachments 附件列表
     * @return 结果
     */
    int batchInsertCompetitionAttachments(List<CompetitionAttachment> attachments);

    /**
     * 根据大赛ID删除附件
     * 
     * @param competitionId 大赛ID
     * @return 结果
     */
    int deleteByCompetitionId(Long competitionId);

    /**
     * 根据大赛ID查询附件列表
     * 
     * @param competitionId 大赛ID
     * @return 附件列表
     */
    List<CompetitionAttachment> selectByCompetitionId(Long competitionId);
}
